package cn.chinamobile.dao;

import cn.chinamobile.entities.Bus;
import cn.chinamobile.entities.Order;
import cn.chinamobile.entities.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

@Mapper
public interface OrderDao {

    public Bus getBusById(@Param("busId") String busId);
    public User getUserByUserId(@Param("userId") Integer userId);
    public List<Order> getOrderByUserId(@Param("userId") Integer userId);

    public int orderAdd(Order order);

    public int orderDelete(@Param("id") Integer id);
}
